//
//  PZRDetailCollectionViewCell.m
//  Moment
//
//  Created by pang on 15/12/24.
//  Copyright © 2015年 片刻. All rights reserved.
//

#import "PZRDetailCollectionViewCell.h"

@implementation PZRDetailCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}
-(void)create
{
    self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.size.width, self.contentView.size.height)];
    //self.imageView.backgroundColor = [UIColor orangeColor];
    [self.contentView addSubview:_imageView];
}
-(void)setADetail:(PZRReadDetail *)aDetail
{
    if (_aDetail != aDetail)
    {
        _aDetail = aDetail;
    }
    NSURL *url = [NSURL URLWithString:_aDetail.coverimg];
    //NSLog(@"###%@",_aDetail.coverimg);
    [self.imageView sd_setImageWithURL:url];
}




@end
